package review.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import review.entity.Science;

import java.util.List;

@Repository
public interface ScienceDAO extends JpaRepository<Science,Integer> {
  Science findByName(String name);

  List<Science> findAllByParent(Integer parent);
}
